<?php
/**
 * Created by PhpStorm.
 * User: tangchao
 * Date: 19-4-19
 * Time: 下午2:56
 */

//队列 先进先出
$queue = new SplQueue();

$queue->enqueue('data1');
$queue->enqueue('data2');

echo $queue->dequeue();
echo $queue->dequeue();